package view.confirmaciones;

import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class RecadoEliminado {

	private JFrame frame;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					RecadoEliminado window = new RecadoEliminado();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public RecadoEliminado() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setResizable(false);
		frame.setBounds(100, 100, 294, 119);
		frame.setLocationRelativeTo(null);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);

		JLabel lblElMensajeSe = new JLabel("El mensaje se ha eliminado correctamente");
		lblElMensajeSe.setFont(new Font("Tahoma", Font.PLAIN, 14));
		lblElMensajeSe.setBounds(14, 20, 258, 14);
		frame.getContentPane().add(lblElMensajeSe);

		JButton btnAceptar = new JButton("Aceptar");
		btnAceptar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				frame.dispose();
			}
		});
		btnAceptar.setBounds(179, 57, 89, 23);
		frame.getContentPane().add(btnAceptar);
	}

	public void setVisble(boolean b) {
		frame.setVisible(b);
	}
}
